Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Pointslicepool size classes #1913

Closed
wants to merge 3 commits into from
Closed

Conversation

Dieterbe
Copy link
Contributor

@Dieterbe Dieterbe commented Oct 1, 2020

Been wanting to do this for years, and finally got an excuse (#1912) to do it.
didn't do scientific testing / memory comparisons, but docker-dev seems to work fine, and intuitively this should be fine (at the worst case, consume no more memory than before, but typically i would expect lower memory use)

I will say that we could probably make it more clever, but it's a start... ? what do you think?

1) save memory by not using large slices when we only need small ones
  In particular, fix #1912
2) use a default size that corresponds to a capacity that append()
   actually uses (I believe a size of 800 gets rounded up by make)
e.g. in docker-dev with 1s precision 2days means 172800 points.
This is *before* maxdatapoints runtime consolidation,
so we may as well accommodate it with some special size classes
this makes sure our large slices won't be taken up by smaller (4k)
requests
@stale
Copy link

stale bot commented Dec 31, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 31, 2020
@stale stale bot closed this Jan 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants